home *** CD-ROM | disk | FTP | other *** search
/ Cinema Studio: Frank Herrmann / Cinema Studio - Frank Herrmann.iso / tools / pbm / manuals / ppmshift.man < prev    next >
Text File  |  1994-03-01  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      ppmshift(1)         AMIGA (16 November 1993)          ppmshift(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           ppmshift - shift lines of a portable pixmap left or right by
  10.           a random amount
  11.  
  12.      SYNOPSIS
  13.           ppmshift shift [ppmfile]
  14.  
  15.      DESCRIPTION
  16.           Reads a portable pixmap as input. Shifts every row of image
  17.           data to the left or right by a certain amount. The 'shift'
  18.           parameter determines by how many pixels a row is to be
  19.           shifted at most.
  20.  
  21.           Another one of those effects I intended to use for MPEG
  22.           tests.  Unfortunately, this program will not help me here -
  23.           it creates too random patterns to be used for animations.
  24.           Still, it might give interesting results on still images.
  25.  
  26.      EXAMPLE
  27.           Check this out: Save your favourite model's picture from
  28.           something like alt.binaries.pictures.supermodels (ok, or
  29.           from any other picture source), convert it to ppm, and
  30.           process it e.g. like this, assuming the picture is 800x600
  31.           pixels:
  32.             # take the upper half, and leave it like it is
  33.             pnmcut 0 0 800 300 cs.ppm >upper.ppm
  34.  
  35.             # take the lower half, flip it upside down, dim it and
  36.           distort it a little
  37.             pnmcut 0 300 800 300 cs.ppm | pnmflip -tb | ppmdim 0.7 |
  38.                ppmshift 10 >lower.ppm
  39.  
  40.             # and concatenate the two pieces
  41.             pnmcat -tb upper.ppm lower.ppm >newpic.ppm The resulting
  42.           picture looks like the image being reflected on a water
  43.           surface with slight ripples.
  44.  
  45.      SEE ALSO
  46.           ppm(5), pnmcut(1), pnmflip(1), ppmdim(1), pnmcat(1)
  47.  
  48.      AUTHOR
  49.           Copyright (C) 1993 by Frank Neumann
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 3/1/94)
  64.  
  65.  
  66.  
  67.